package org.esiag.isidis.bi.il.expedition;

import org.esiag.isidis.bi.il.common.Client;

/**
 * Class CourrierClient
 * @author RANDRIAMANANTENA
 * @version 1.0
 * @since 1.0
 */
public class CourrierClient {

	/**
	 * Adresse
	 */
	protected String _adresse;
	
	/**
	 * Poids
	 */
	protected Float _poids;
	
	/**
	 * Recommande or not
	 */
	protected Boolean _recommande;
	
	/**
	 * fragile or not
	 */
	protected Boolean _fragile;
	
	/**
	 * Nominatif or not
	 */
	protected Boolean _nominatif;
	
	/**
	 * If nominatif the client must be set
	 */
	protected Client _client=null;
	
	public CourrierClient(){
		
	}
	
	public CourrierClient(String adr, Float p, Boolean rec, Boolean frag, Boolean nominatif, Client cli) {
		this._adresse = adr;
		this._poids = p;
		this._recommande = rec;
		this._fragile = frag;
		this._nominatif = nominatif;
		if (this._nominatif && cli!=null)
			this._client = cli;
	}
	
	protected void create(String adr, Float p, Boolean rec, Boolean frag, Boolean nominatif, Client cli){
		this._adresse = adr;
		this._poids = p;
		this._recommande = rec;
		this._fragile = frag;
		this._nominatif = nominatif;
		if (this._nominatif && cli!=null)
			this._client = cli;
	}

}
